package com.gtw.modules.dao;

import com.gtw.modules.entity.TbLike;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface TbLikeMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TbLike record);

    int insertSelective(TbLike record);

    TbLike selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbLike record);

    int updateByPrimaryKey(TbLike record);

    TbLike selectByUid(@Param("uid") String uid, @Param("discussid") Integer discussid);

    List<TbLike> selectByDiscussid(@Param("discussid") Integer discussid);
}